## This file is part of the Refran Library
## Copyright (C) 2009 César Enrique García
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
##

AUTOMAKE_OPTIONS = 1.8 foreign color-tests

DISTCLEANFILES = *~ *.log

EXTRA_DIST = DummyRecipe.h HeavyCpuRecipe.h HeavyLoggerRecipe.h test_driver

AM_CPPFLAGS = -I $(top_srcdir)/refrancore $(LOG4CPP_CFLAGS) 

AM_CXXFLAGS = -std=c++0x  -Wall -Wextra -pedantic $(BOOST_CPPFLAGS)

if MAINTAINER_MODE

MAINTAINERCLEANFILES = $(srcdir)/Makefile.in

endif

INCLUDES = $(REFRAN_INCLUDES)

LDADD = -lrefrancore -L$(top_builddir)/refrancore  $(LOG4CPP_LIBS) \
	$(BOOST_LDFLAGS) $(BOOST_FILESYSTEM_LIB) \
	$(BOOST_UNIT_TEST_FRAMEWORK_LIB) \
	$(BOOST_THREAD_LIB) $(BOOST_SYSTEM_LIB)

check_PROGRAMS = RecipeFactory-test Recipe-test RecipeLogger-test 


RecipeFactory_test_SOURCES = RecipeFactory-test.cpp DummyRecipe.cpp 
Recipe_test_SOURCES = Recipe-test.cpp DummyRecipe.cpp  HeavyCpuRecipe.cpp 
RecipeLogger_test_SOURCES = RecipeLogger-test.cpp HeavyLoggerRecipe.cpp

TESTS_ENVIRONMENT = $(srcdir)/test_driver
TESTS = $(check_PROGRAMS)
